<template>
    <view class="container">
        <view class="help cont-box b-f" v-for="(item, index) in list" :key="index">
            <view>
                <text class="h4">{{ item.title }}</text>
            </view>

            <view>
                <text class="p">{{ item.content }}</text>
            </view>
        </view>
    </view>
</template>

<script>
let app = getApp();
export default {
    data() {
        return {
            list: []
        };
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad: function (options) {},
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {
        // 获取帮助列表
        this.getHelpList();
    },
    methods: {
        /**
         * 获取帮助列表
         */
        getHelpList: function () {
            let that = this;
            app.globalData._get('app/help', {}, function (result) {
                console.log(result.data);
                that.setData(result.data);
            });
        }
    }
};
</script>
<style>
@import './help.css';
</style>
